﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Core.DataAccess.Model.Migrations.ProjectOrder
{
    public partial class addorderproductcomment : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "UserKey",
                table: "OrderUserAddress",
                nullable: false,
                oldClrType: typeof(long));

            migrationBuilder.AddColumn<bool>(
                name: "IsComment",
                table: "order_product",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsComment",
                table: "order_product");

            migrationBuilder.AlterColumn<long>(
                name: "UserKey",
                table: "OrderUserAddress",
                nullable: false,
                oldClrType: typeof(int));
        }
    }
}
